package com.qf.smsplatform.interfaces;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * 接口模块启动类
 * @author zjw
 * @date 2021年8月9日16:49:21
 */
@SpringBootApplication(scanBasePackages = {
        "com.qf.smsplatform.interfaces",
        "com.qf.smsplatform.common"
})
@EnableEurekaClient
@EnableFeignClients
public class InterfaceApplication {
    public static void main(String[] args) {
        SpringApplication.run(InterfaceApplication.class,args);
    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
